# Created by: Adam Weinberger <adamw@FreeBSD.org>
# $FreeBSD: head/graphics/evince/Makefile 351960 2014-04-23 17:00:53Z tijl $
#    $MCom: ports/trunk/graphics/evince/Makefile 17268 2013-04-01 05:13:11Z marcus $

PORTNAME=	evince
PORTVERSION=	3.8.3
CATEGORIES=	graphics print gnome
MASTER_SITES=	GNOME
DIST_SUBDIR=	gnome3

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	GNOME multi-format document viewer

BUILD_DEPENDS=	${LOCALBASE}/share/icons/gnome/index.theme:${PORTSDIR}/misc/gnome-icon-theme
LIB_DEPENDS=	libpoppler-glib.so:${PORTSDIR}/graphics/poppler-glib \
		libdbus-glib-1.so:${PORTSDIR}/devel/dbus-glib \
		libspectre.so:${PORTSDIR}/print/libspectre
RUN_DEPENDS=	${LOCALBASE}/share/icons/gnome/index.theme:${PORTSDIR}/misc/gnome-icon-theme

GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
INSTALLS_ICONS=	yes
INSTALLS_OMF=	yes
USES=		desktop-file-utils gettext gmake libtool:keepla pathfix \
		pkgconfig tar:xz
USE_GNOME=	intlhack glib20 gtk30 introspection:build libxml2 \
	cairo
USE_XORG=	ice sm
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
INSTALL_TARGET=	install-strip

GLIB_SCHEMAS=	org.gnome.Evince.gschema.xml

CONFIGURE_ARGS=	--enable-introspection=yes \
	--enable-viewer \
	--enable-ps \
	--disable-thumbnailer \
	--enable-previewer \
	--disable-nautilus \
	--disable-djvu \
	--disable-comics \
	--disable-gtk-doc-html \
	--disable-xps \
	--without-keyring \
	--without-html-dir

.include <bsd.port.mk>
